#ifndef EDITTASKDLG_H
#define EDITTASKDLG_H

#include "Entity/DictData.h"
#include "Entity/Job.h"
#include "api/systemMonitor/timedtaskmanagerapi.h"
#include <QDialog>

namespace Ui {
class EditTaskDlg;
}

class EditTaskDlg : public QDialog
{
    Q_OBJECT

public:
    explicit EditTaskDlg(qlonglong id,QList<DictData> sys_job_group,QWidget *parent = nullptr);
    ~EditTaskDlg();
signals:
    void success();

protected:
    bool eventFilter(QObject *obj, QEvent *event);

private slots:    
    void on_btn_close_clicked();

    void on_btn_executeNow_clicked();

    void on_btn_executeOnce_clicked();

    void on_btn_executeNone_clicked();

    void on_btn_concurrent_clicked();

    void on_btn_noConcurrent_clicked();

    void on_btn_ok_clicked();

    void on_pushButton_clicked();

private:
    Ui::EditTaskDlg *ui;
    Job job;
    QList<DictData> sys_job_group;
    TimedTaskManagerApi api;

    void init();
};

#endif // EDITTASKDLG_H
